
package eu.ec.ellipcis.integration.ws.endpoint;

import org.springframework.integration.Message;
import org.springframework.integration.MessageHeaders;
import org.springframework.integration.annotation.ServiceActivator;
import org.springframework.stereotype.Component;
import org.springframework.ws.server.endpoint.annotation.Endpoint;

@Endpoint
public class CommonServiceEndpoint {

    @ServiceActivator
    public Message<?> handleRequest(Message<?> message) throws Exception {

        MessageHeaders headers = message.getHeaders();
        System.out.println(headers);

        return message;
    }
}

